#
# Be sure to run `pod lib lint ListViewModel.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ListViewModel'
  s.version          = '1.0.9'
  s.summary          = 'ListViewModel是对iOS UITableView 和 UICollectionView DataSource 的简单封装'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
                        1.对 UITableView 的 UITableViewDataSource 协议方法进行封装
                        2.对 UICollectionView 的 UICollectionViewDataSource 协议方法进行封装
                       DESC

  s.homepage         = 'https://gitee.com/clh2046_admin/ListViewModel'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'caolianhua' => 'clh2046@163.com' }
  s.source           = { :git => 'https://gitee.com/clh2046_admin/ListViewModel.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'ListViewModel/Classes/ListViewModel.h'
  s.public_header_files = 'ListViewModel/Classes/ListViewModel.h'
  

  s.subspec 'CellModel' do |cellModel|
      
      cellModel.source_files = 'ListViewModel/Classes/CellModel/*'
      cellModel.public_header_files = 'ListViewModel/Classes/CellModel/*.h'
  end
  
  s.subspec 'SectionHeaderFooterView' do |headerFooterView|
    headerFooterView.source_files = 'ListViewModel/Classes/SectionHeaderFooterView/**/*'
    headerFooterView.public_header_files = 'ListViewModel/Classes/SectionHeaderFooterView/**/*.h'
    headerFooterView.dependency 'ListViewModel/CellModel'
  end
  
  s.subspec 'CVCell' do |cVCell|
      cVCell.source_files = 'ListViewModel/Classes/CVCell/**/*'
      cVCell.public_header_files = 'ListViewModel/Classes/CVCell/**/*.h'
      cVCell.dependency 'ListViewModel/CellModel'
  end
  s.subspec 'TVCell' do |tVCell|
      tVCell.source_files = 'ListViewModel/Classes/TVCell/**/*'
      tVCell.public_header_files = 'ListViewModel/Classes/TVCell/**/*.h'
      tVCell.dependency 'ListViewModel/CellModel'
  end
  s.subspec 'DataSource' do |dataSource|
      dataSource.source_files = 'ListViewModel/Classes/DataSource/**/*'
      dataSource.public_header_files = 'ListViewModel/Classes/DataSource/**/*.h'
      dataSource.dependency 'ListViewModel/CellModel'
      dataSource.dependency 'ListViewModel/TVCell'
      dataSource.dependency 'ListViewModel/CVCell'
      dataSource.dependency 'ListViewModel/SectionHeaderFooterView'
  end
  s.subspec 'ViewModel' do |viewModel|
      viewModel.source_files = 'ListViewModel/Classes/ViewModel/**/*'
      viewModel.public_header_files = 'ListViewModel/Classes/ViewModel/**/*.h'
      viewModel.dependency 'ListViewModel/DataSource'
  end
  
  s.subspec 'VC' do |vc|
    vc.source_files = 'ListViewModel/Classes/VC/**/*'
    vc.public_header_files = 'ListViewModel/Classes/VC/**/*.h'
    vc.dependency 'ListViewModel/ViewModel'
    vc.dependency 'ListViewModel/SectionHeaderFooterView'
  end
  
  s.frameworks = 'Foundation','UIKit'
   
end
